<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<title>上传测试</title>
<meta charset="utf-8">
<script type="text/javascript" src="${ctx}/js/easyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="${ctx}/js/zbxupload.js"></script>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<script>

var myAttaServer = 'http://uc.utrm.com/sweb/';
var myAttaDomain = 'utrm.com';


//选择文件执行方法
function addUploadFile(num){
   var attaServerUrl =myAttaServer+"attachment/media/upload.action?isRemote=T";
  $.zbxupload.upload({
    attaDomain:myAttaDomain,
    attaServerUrl:attaServerUrl,
    fileNum:num,
    tokenId:''
  });
}


</script>
</head>
<body class="home-template">

<div msg="第1组">
  <label onclick="addUploadFile(1);" for="uploadFileInput" class="fDef_Btn" >选择文件</label>
  <label id="fileUpText_1_subbtn" onclick="$.zbxupload.uploadSubmit(this);" style='display:none;' class="fDef_Btnse" >开始上传</label>
  <input id="fileUpText_1" name="attaUrl" type="hidden" class="fDef_Input" > <!-- 此元素的name="attaUrl" 对照修改后台属性，以备入库 -->
  <A id="fileUpText_1_a" href="javascript:void(0);" target="_bank"></A>
  <label id="fileUpText_1_msg" ></label> <!-- 此元素可不用 -->
</div>

<!-- 附件上传iframe元素 -->
<iframe name='uploadIframe' id='uploadIframe' frameborder='0' height='0' width='0'></iframe>
<div id="uploadIframeDefDiv" style="height:0px;" ></div>


</body>
</html>